import React, { lazy } from 'react'
import { RouterArr } from '../index'
import LayoutIndex from '@/layouts/index'

const Welcome = lazy(() => import('@/pages/Welcome/index'))

const welcomeRouter: Array<RouterArr> = [
  {
    element: <LayoutIndex />,
    children: [
      {
        path: '/welcome',
        element: <Welcome />,
        meta: {
          requiresAuth: true,
          title: '欢迎',
          key: 'welcome'
        }
      }
    ]
  }
]

export default welcomeRouter
